<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>allguide</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
	<a href="<%=basePath%>guide/addguide.jsp">新建</a>
	<div style="margin-left: 80px;width: 600px;height: 40px;">
		<label style="font-weight: bold; color:red;">查询说明:</label><br/><font style="font-weight: bold;">(1)</font> 在进行类型查询时只需输入类型所对应的<font
			style="font-weight: bold;">数字</font>即可:1 宏观指导 2 引进计划 3 机制体制 4 政策文件 5
		领导讲话<br/>
		<font style="font-weight: bold;">(2)</font>在进行编号查询时请您确认您输入的是<font style="font-weight: bold;">数字</font>
   		而不是其他字符
	</div>
   
   
	<div style="margin-left:auto;margin-right:auto ; width: 660px;height: 40px;margin-top: 50px;">
			<center>
				<form action="<%=basePath%>servlet/BackSearchServlet?type=guide"
					method="post">
					<table>
						<tr>
							<td><label style="font-weight: bold;">关键字搜索</label> <select
								name="search" style="height: 30px;">
									<option value="1">按编号搜索</option>
									<option value="2">按标题搜索</option>
									<option value="3">按时间搜索</option>
									<option value="4">按内容搜索</option>
									<option value="5">按类型搜索</option>
								
							</select> <input type="text" name="title" style="width:250px;height: 30px;"placeholder="请输入关键字"  /> <input
								type="submit" value="搜索" id="btn" style="height: 30px;background:#3358FF;"  /></td>
						</tr>
					</table>
				</form>
				</center>
			</div>
			<div style="margin-top: 20px;">
	<center>
		<table style="border: 1px solid #BCE2F3;">
			<tr
				style="text-align:center; height: 28px;border-bottom: 1px solid #64B8E4;background: #E4F2FB;">
				<td>编号</td>
				<td>标题</td>
				<td>类型</td>
				<td>时间</td>
				<td>相关操作</td>
			</tr>
			<c:forEach items="${r"${glist.list }"}" var="g">
				<tr style="text-align:center;">
					<td><a style="text-decoration: none;"
						href="<%=basePath %>servlet/GuideServlet?m=DetailGuide&id=${r"${g.id}"}">${r"${g.id}"}</a>
					</td>
					<td><a style="text-decoration: none;"
						href="<%=basePath %>servlet/GuideServlet?m=DetailGuide&id=${r"${g.id}"}">${r"${g.title}"}</a>
					</td>
					<c:if test="${r"${g.type==1}"}">
						<td>宏观指导</td>
					</c:if>
					<c:if test="${r"${g.type==2}"}">
						<td>引进计划</td>
					</c:if>
					<c:if test="${r"${g.type==3}"}">
						<td>机制体制</td>
					</c:if>
					<c:if test="${r"${g.type==4}"}">
						<td>政策文件</td>
					</c:if>
					<c:if test="${r"${g.type==5}"}">
						<td>领导讲话</td>
					</c:if>
					<td>${r"${g.time }"}</td>
					<td><a style="text-decoration: none;"
						href="<%=basePath %>servlet/GuideServlet?m=DelGuide&id=${r"${g.id}"}">删除</a>
						<a style="text-decoration: none;"
						href="<%=basePath %>servlet/GuideServlet?m=updateGuideDocById&id=${r"${g.id}"}">添加文件</a>
					</td>
				</tr>
			</c:forEach>
		</table>
		<div style="margin-top: 20px;">
		<font color="#0000EE">共${r"${glist.maxPage}"}页</font>&nbsp;&nbsp; <a style="text-decoration: none;"
			href="<%=basePath%>servlet/GuideServlet?m=AllGuide">第一页</a> <a style="text-decoration: none;"
			href="<%=basePath%>servlet/GuideServlet?m=AllGuide&method=pre">上一页</a>
		<c:forEach begin="1" end="${r"${glist.maxPage}"}" step="1" var="i">
	&nbsp;&nbsp;<a style="text-decoration: none;"
				href="<%=basePath%>servlet/GuideServlet?m=AllGuide&method=index&ind=${r"${i}"}">${r"${i }"}</a>
		</c:forEach>
		&nbsp;&nbsp; <a style="text-decoration: none;"
			href="<%=basePath%>servlet/GuideServlet?m=AllGuide&method=next">下一页</a>
		<a style="text-decoration: none;"href="<%=basePath%>servlet/GuideServlet?m=AllGuide&method=last">最后一页</a>
		</div>
	</center>
	</div>
</body>
</html>
